﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Core.Interfaces.IPresenters;

namespace Core.Views
{
    public partial class BuildingView : Form, IBuildingView
    {
        public BuildingView()
        {
            InitializeComponent();
        }

        public BindingSource Building
        {
            get { return iBuildingBindingSource; }
            set { iBuildingBindingSource = value; }
        }

        public BindingSource Districts
        {
            get { return iDistrictBindingSource; }
            set { iDistrictBindingSource = value; }
        }

        public event EventHandler SaveBuilding;

        private void Save_Click(object sender, EventArgs e)
        {
            if (SaveBuilding != null)
            {
                SaveBuilding(this, null);
            }
        }


    }
}
